package com.dragon.loan.entity;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;
 
/**
 * MpFundPricing entity. @author MyEclipse Persistence Tools
 */
//@Entity
//@Table(name = "mp_fund_pricing")
//@EntityIsLog()
public class MpFundPricing implements java.io.Serializable {
	private Long id = 0L;
	private Long fund = 0L;
	private Integer tenor = 0;
	private BigDecimal cost = BigDecimal.ZERO.setScale(2);
	private BigDecimal pricing = BigDecimal.ZERO.setScale(2);
	private BigDecimal guarantor = BigDecimal.ZERO.setScale(2);
	private BigDecimal platform = BigDecimal.ZERO.setScale(2);
	private String lastUpdateUid = " ";
	private Timestamp lastUpdate = new Timestamp(new Date().getTime());
	private String customerCategory = "";
	private Long product = 0L;
	private Integer requestProduct = 0;
	private Long rateYearId = 0L;
	private String status = "";
	private Long penaltyFee1 = 0L;
	private Long penaltyFee2 = 0L;
	/** default constructor */
	public MpFundPricing() {
	}

	// Property accessors

	//@Id
	//@GeneratedValue(strategy = IDENTITY)
	////@Column(name = "id", unique = true, nullable = false)
	//@FieldAnnotation(insertable = false, updatable = false, listable = false, viewable = true, filterable = false, orderValue = 0)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	//@Column(name = "fund", precision = 20, scale = 0)
	//@FieldAnnotation(enumKey="FUND_SOURCE",insertable = false, updatable = false, listable = false, viewable = true, filterable = false, orderValue = 0)
	public Long getFund() {
		return this.fund;
	}

	public void setFund(Long fund) {
		this.fund = fund;
	}

	//@Column(name = "tenor", precision = 11, scale = 0)
	//@FieldAnnotation(insertable = false, updatable = false, listable = false, viewable = true, filterable = false, orderValue = 0)
	public Integer getTenor() {
		return this.tenor;
	}

	public void setTenor(Integer tenor) {
		this.tenor = tenor;
	}

	//@Column(name = "cost", precision = 8, scale = 6)
	//@FieldAnnotation(insertable = false, updatable = false, listable = false, viewable = true, filterable = false, orderValue = 0)
	public BigDecimal getCost() {
		return this.cost;
	}

	public void setCost(BigDecimal cost) {
		this.cost = cost;
	}

	//@Column(name = "pricing", precision = 8, scale = 6)
	//@FieldAnnotation(insertable = false, updatable = false, listable = false, viewable = true, filterable = false, orderValue = 0)
	public BigDecimal getPricing() {
		return this.pricing;
	}

	public void setPricing(BigDecimal pricing) {
		this.pricing = pricing;
	}

	//@Column(name = "guarantor", precision = 7, scale = 5)
	//@FieldAnnotation(insertable = false, updatable = false, listable = false, viewable = true, filterable = false, orderValue = 0)
	public BigDecimal getGuarantor() {
		return this.guarantor;
	}

	public void setGuarantor(BigDecimal guarantor) {
		this.guarantor = guarantor;
	}

	//@Column(name = "platform", precision = 7, scale = 5)
	//@FieldAnnotation(insertable = false, updatable = false, listable = false, viewable = true, filterable = false, orderValue = 0)
	public BigDecimal getPlatform() {
		return this.platform;
	}

	public void setPlatform(BigDecimal platform) {
		this.platform = platform;
	}

	//@Column(name = "last_update_uid")
	//@FieldAnnotation(insertable = false, updatable = false, listable = false, viewable = true, filterable = false, orderValue = 0)
	public String getLastUpdateUid() {
		return this.lastUpdateUid;
	}

	public void setLastUpdateUid(String lastUpdateUid) {
		this.lastUpdateUid = lastUpdateUid;
	}

	//@Column(name = "last_update", length = 19)
	//@FieldAnnotation(insertable = false, updatable = false, listable = false, viewable = true, filterable = false, orderValue = 0)
	public Timestamp getLastUpdate() {
		return this.lastUpdate;
	}

	public void setLastUpdate(Timestamp lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

	//@Column(name = "customer_category", length = 20)
	//@FieldAnnotation(enumKey="APP_CUSTTYPE",insertable = false, updatable = false, listable = false, viewable = true, filterable = false, orderValue = 0)
	public String getCustomerCategory() {
		return this.customerCategory;
	}

	public void setCustomerCategory(String customerCategory) {
		this.customerCategory = customerCategory;
	}

	//@Column(name = "product", precision = 20, scale = 0)
	//@FieldAnnotation(enumKey="LOAN_PRODUCT",insertable = false, updatable = false, listable = false, viewable = true, filterable = false, orderValue = 0)
	public Long getProduct() {
		return this.product;
	}

	public void setProduct(Long product) {
		this.product = product;
	}

	//@Column(name = "requestProduct")
	//@FieldAnnotation(insertable = false, updatable = false, listable = false, viewable = true, filterable = false, orderValue = 0)
	public Integer getRequestProduct() {
		return this.requestProduct;
	}

	public void setRequestProduct(Integer requestProduct) {
		this.requestProduct = requestProduct;
	}

	
	//@Column(name = "rate_year_Id",  precision = 20, scale = 0)
	//@FieldAnnotation(enumKey="P2P_RATE_FUND",insertable = false, updatable = false, listable = false, viewable = true, filterable = false, orderValue = 0)
	public Long getRateYearId() {
		return this.rateYearId;
	}

	public void setRateYearId(Long rateYearId) {
		this.rateYearId = rateYearId;
	}

	//@Column(name = "status")
	//@FieldAnnotation(enumKey="FUND_STATUS",insertable = false, updatable = false, listable = false, viewable = true, filterable = false, orderValue = 0)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	//@Column(name = "penalty_fee_1")
	//@FieldAnnotation(insertable = false, updatable = false, listable = false, viewable = true, filterable = false, orderValue = 0)
	public Long getPenaltyFee1() {
		return this.penaltyFee1;
	}

	public void setPenaltyFee1(Long penaltyFee1) {
		this.penaltyFee1 = penaltyFee1;
	}

	//@Column(name = "penalty_fee_2")
	//@FieldAnnotation(insertable = false, updatable = false, listable = false, viewable = true, filterable = false, orderValue = 0)
	public Long getPenaltyFee2() {
		return this.penaltyFee2;
	}

	public void setPenaltyFee2(Long penaltyFee2) {
		this.penaltyFee2 = penaltyFee2;
	}
	/**
	 * toString
	 * 
	 * @return String
	 */
	public String toString() {
		StringBuffer buffer = new StringBuffer();

		buffer.append(getClass().getName()).append("@")
				.append(Integer.toHexString(hashCode())).append(" [");

		buffer.append("id").append("=").append(id).append(", ");

		buffer.append("fund").append("=").append(fund).append(", ");

		buffer.append("tenor").append("=").append(tenor).append(", ");

		buffer.append("cost").append("=").append(cost).append(", ");

		buffer.append("pricing").append("=").append(pricing).append(", ");

		buffer.append("guarantor").append("=").append(guarantor).append(", ");

		buffer.append("platform").append("=").append(platform).append(", ");

		buffer.append("lastUpdateUid").append("=").append(lastUpdateUid)
				.append(", ");

		buffer.append("lastUpdate").append("=").append(lastUpdate).append(", ");

		buffer.append("customerCategory").append("=").append(customerCategory)
				.append(", ");

		buffer.append("product").append("=").append(product).append(", ");

		buffer.append("requestProduct").append("=").append(requestProduct)
				.append(", ");

		buffer.append("rateYearId").append("=").append(rateYearId).append(", ");
		
		buffer.append("status").append("=").append(status).append(", ");

		buffer.append("penaltyFee1").append("=").append(penaltyFee1)
				.append(", ");

		buffer.append("penaltyFee2").append("=").append(penaltyFee2)
				.append(", ");

		buffer.append("]");

		return buffer.toString();
	}

}